package online.longzipeng.cinemasys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import online.longzipeng.cinemasys.dto.sysuser.SysUserQueryResponseDTO;
import online.longzipeng.cinemasys.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 查询所有带分页
     */
    IPage<SysUserQueryResponseDTO> getListPage(Page<SysUserQueryResponseDTO> page,@Param(Constants.WRAPPER) Wrapper<SysUserQueryResponseDTO> sysUserQueryResponseDTOWrapper);
}
